<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="com.bsh.controller.WeiXinSignController"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<jsp:include page="/api/registerWeiXin"></jsp:include>
<c:if test="${!empty(goTo)}" >
  <% response.sendRedirect((String)session.getAttribute("goTo"));%>
</c:if>
<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title>注册</title>
        <script src="lib/mui.js"></script>
        <link href="csses/mui.css" rel="stylesheet" />
        <script type="text/javascript" charset="utf-8">
            mui.init();
        </script>
        <link rel="stylesheet" href="csses/common.css" />
        <link rel="stylesheet" href="csses/reg.css" />
        <script type="text/javascript" src="javascript/common.js"></script>
    </head>

   <body>
        <div class="mui-content">
            <div style="width:100%;height:20%;">
                <img src="image/splash_pic_02.png?v=0907" style="width: 80%;height: 80%;margin-left: 10%" />
            </div>
            <form class="mui-input-group">
                <div class="mui-input-row">
                    <label>手机号码</label>
                    <input type="text" class="mui-input-clear reg_phone" placeholder="请输入11位手机号码">
                </div>
                <div class="mui-input-row testPic" style="position: relative;">
                    <label>图形验证</label>
                    <input type="text" placeholder="请输入图片验证码" id="input_pic_message">
                    <img id="pic">
                </div>
                <div class="mui-input-row">
                    <label>短信验证</label>
                    <input type="text" placeholder="请输入验证码" id="input_phone_message">
                    <button type="button" class="mui-btn mui-btn-danger smsVerifyCode" id="btn_phone_message">获取验证码</button>
                </div>
                <div class="mui-input-row">
                    <label>登录密码</label>
                    <input type="password" class="mui-input-clear password" placeholder="不小于6位(即支付密码)">
                </div>
                <!-- <div class="mui-input-row">
                    <label>确认密码</label>
                    <input type="password" class="mui-input-clear re_password" placeholder="默认为支付密码">
                </div> -->
                <!-- <div class="mui-input-row mui-radio reg_type">
                    <span>性别</span> 男
                    <input type="radio" name="sex" value="M" style="margin-top: 0.05rem;" /> 女
                    <input type="radio" name="sex" value="F" />

                </div> -->
                <div class="mui-input-row">
                    <label>推荐人</label>
                        <c:set var="strMobile" value='${((!empty(param.user))?param.user:param.mobile)}'/>
                        <input type="text" class="pMobile" style='${(!empty(param.level)&&(param.level=="vip"||param.level=="gold"))?"width:130px;float:left;":""}' placeholder="推荐人账号，可不填"  value='${(!empty(param.level)&&param.level=="comm")?"":strMobile}' ${(!empty(param.level)&&(param.level=="vip"||param.level=="gold"))?"readonly":""}>
                        <span style="margin-top: 9px;float:left;">${(!empty(param.level)&&param.level=="comm")?"":param.realName}</span>
                </div>
                <input type="hidden" class="wxUnionId" name="wxUnionId" value="${ wxUnionId }" />
            </form>
            <div class="mui-content-padded">
                <button id='reg' class="mui-btn mui-btn-block mui-btn-danger">注册</button>
            </div>
            <div class="mui-content-padded agreement">
                <p style="text-align: center;">注册表示同意<a>《用户协议》</a></p>
            </div>
            
        </div>
        <div id="hidden_box"></div>

        <script type="text/javascript" src="javascript/reg_tuijian.js?v=0907"></script>
    </body>
    <script type="text/javascript" src="./lib/jquery-1.10.1.min.js"></script>
    
    
</html>